package org.upt.dcda.presentation;

import java.io.IOException;
import java.util.List;

import javax.ejb.EJB;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.upt.dcda.TagManagerBeanRemote;
import org.upt.dcda.db.TagEntity;

public class TagInformationExtended extends TagInformation
{
	@EJB
	private TagManagerBeanRemote	tagManagerBean;

	public List<TagEntity> getAllTags(HttpServletRequest request,
			HttpServletResponse response)
	{
		try
		{
			return getAllTags();
		}
		catch (Throwable be)
		{
			try
			{
				request.getServletContext().log("Caught Exception: " + be, be);
				response.sendError(
						HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
						be.toString());
			}
			catch (IOException e)
			{
				request.getServletContext().log("Caught IOException: " + e, e);
			}
			return null;
		}
	}

}
